home *** CD-ROM | disk | FTP | other *** search
- global gPhotos, gPhotos1, gPhotos2, gPhotos3, gPhotos4
-
- on setGPhoto
- if gPhotos < 1 then
- set whichPath to the pathName & the movie
- if whichPath contains "ECG1" then
- setGPhotos()
- set gPhotos to gPhotos1
- else
- if whichPath contains "ECG2" then
- setGPhotos()
- set gPhotos to gPhotos2
- else
- if whichPath contains "ECM1" then
- setGPhotos()
- set gPhotos to gPhotos3
- else
- if whichPath contains "ECM2" then
- setGPhotos()
- set gPhotos to gPhotos4
- else
- getPICTs()
- sortPICTs(gPhotos)
- end if
- end if
- end if
- end if
- end if
- end
-
- on getPICTs
- set firstCast to (not developersKey() * 199) + 1
- set lastCast to the number of castMembers
- set gPhotos to []
- sort(gPhotos)
- repeat with x = firstCast to lastCast
- set theCastType to the castType of cast x
- if theCastType = #bitmap then
- append(gPhotos, [the name of cast x, x])
- next repeat
- end if
- if theCastType = #script then
- exit repeat
- end if
- end repeat
- if developersKey() then
- put RETURN & RETURN & gPhotos
- end if
- end
-
- on sortPICTs whichList
- set bigList to []
- set smallList to []
- set oldName to EMPTY
- set theCount to count(whichList)
- repeat with x = 1 to theCount
- set indexX to getAt(whichList, 1)
- set newName to getAt(indexX, 1)
- set newName to char 1 to the number of chars in newName - 2 of newName
- if newName <> oldName then
- set charCount to the number of chars in newName
- if charCount <= 6 then
- put "Now processing " & newName & "..."
- else
- put "Now processing " & newName & ", who seems to have " & charCount & " letters in her name."
- put "That would seem to be " & charCount - 6 & " too many to accomodate PC filename convention."
- end if
- if count(smallList) > 0 then
- append(bigList, smallList)
- set smallList to [newName]
- end if
- end if
- if count(smallList) = 0 then
- set smallList to [newName]
- end if
- append(smallList, getAt(indexX, 2))
- deleteAt(whichList, 1)
- set oldName to newName
- end repeat
- if count(smallList) > 0 then
- append(bigList, smallList)
- set smallList to []
- end if
- set gPhotos to bigList
- if developersKey() then
- put gPhotos
- put count(gPhotos)
- end if
- end
-
- on setGPhotos
- set gPhotos1 to [["ALICIA", 202, 204, 206, 208, 210, 212, 214, 216, 218, 220], ["ANGIE", 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250], ["ANNA", 252, 254, 256, 258, 260, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292], ["CATHY", 294, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, 322], ["CORY", 324, 326, 328, 330, 332, 334, 336, 338, 340, 342], ["HOPE", 344, 346, 348, 350, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 372, 374, 376, 378, 380, 382], ["JENNY", 384, 386, 388, 390, 392, 394, 396, 398, 400, 402], ["KATJE", 404, 406, 408, 410, 412, 414, 416, 418, 420, 422, 424, 426, 428, 430, 432], ["KRISTI", 434, 436, 438, 440, 442, 444, 446, 448, 450, 452], ["LANA", 454, 456, 458, 460, 462, 464, 466, 468, 470, 472], ["MARIA", 474, 476, 478, 480, 482, 484, 486, 488, 490, 492, 494, 496, 498, 500, 502], ["MAYA", 504, 506, 508, 510, 512, 514, 516, 518, 520, 522, 524, 526, 528, 530, 532, 534, 536, 538, 540], ["MISSY", 542, 544, 546, 548, 550, 552, 554, 556, 558, 560, 562, 564, 566, 568], ["SANDY", 570, 572, 574, 576, 578, 580, 582, 584, 586, 588, 590, 592, 594, 596, 598, 600, 602, 604, 606, 608], ["SUZI", 610, 612, 614, 616, 618, 620, 622, 624, 626, 628, 630, 632, 634, 636, 638, 640, 642, 644, 646, 648], ["TONYA", 650, 652, 654, 656, 658, 660, 662, 664, 666, 668], ["YVETTE", 670, 672, 674, 676, 678, 680, 682, 684, 686, 688, 690, 692, 694, 696, 698]]
- set gPhotos2 to [["ALEXIS", 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 238, 240], ["AMY", 242, 244, 246, 248, 250, 252, 254, 256, 258, 260], ["BECCA", 262, 264, 266, 268, 270, 272, 274, 276, 278, 280], ["CARLY", 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316], ["CHERIE", 318, 320, 322, 324, 326, 328, 330, 332, 334, 336, 338, 340, 342, 344, 346, 348, 350, 352, 354, 356], ["JANET", 358, 360, 362, 364, 366, 368, 370, 372, 374, 376], ["KATIE", 378, 380, 382, 384, 386, 388, 390, 392, 394, 396, 398, 400, 402, 404, 406, 408, 410, 412, 414, 416], ["KIMMIE", 418, 420, 422, 424, 426, 428, 430, 432, 434, 436], ["LISA", 438, 440, 442, 444, 446, 448, 450, 452, 454, 456, 458, 460, 462, 464, 466], ["LOREN", 468, 470, 472, 474, 476, 478, 480, 482, 484, 486], ["MANDY", 488, 490, 492, 494, 496, 498, 500, 502, 504, 506, 508, 510, 512, 514, 516, 518, 520, 522, 524, 526], ["PAULA", 528, 530, 532, 534, 536, 538, 540, 542, 544, 546, 548, 550, 552, 554, 556, 558, 560, 562, 564, 566], ["TERRI", 568, 570, 572, 574, 576, 578, 580, 582, 584, 586, 588, 590, 592, 594, 596, 598, 600, 602, 604, 606], ["TINA", 608, 610, 612, 614, 616, 618, 620, 622, 624, 626, 628, 630, 632, 634, 636, 638, 640, 642, 644, 646], ["ZANNA", 648, 650, 652, 654, 656, 658, 660, 662, 664, 666, 668, 670, 672, 674, 676, 678, 680, 682, 684, 686]]
- set gPhotos3 to [["ANGEL", 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228], ["BETH", 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 262, 264, 266, 268], ["BETSY", 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298], ["CYNDY", 300, 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, 322, 324, 326, 328, 330, 332, 334, 336, 338], ["EILEEN", 340, 342, 344, 346, 348, 350, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 372, 374, 376, 378], ["FAWN", 380, 382, 384, 386, 388, 390, 392, 394, 396, 398, 400, 402, 404, 406, 408, 410, 412, 414, 416, 418], ["HELENA", 420, 422, 424, 426, 428, 430, 432, 434, 436, 438, 440, 442, 444, 446, 448, 450, 452, 454, 456, 458, 460, 462, 464, 466, 468, 470, 472, 474, 476, 478, 480, 482, 484, 486, 488, 490, 492, 494], ["JACKIE", 496, 498, 500, 502, 504, 506, 508, 510, 512, 514, 516, 518, 520, 522, 524, 526, 528, 530, 532, 534], ["LAURIE", 536, 538, 540, 542, 544, 546, 548, 550, 552, 554, 556, 558, 560, 562, 564, 566], ["LEAH", 568, 570, 572, 574, 576, 578, 580, 582, 584, 586], ["LIZ", 588, 590, 592, 594, 596, 598, 600, 602, 604, 606, 608, 610, 612, 614, 616, 618, 620, 622, 624, 626], ["MARY", 628, 630, 632, 634, 636, 638, 640, 642, 644, 646, 648, 650, 652, 654, 656, 658, 660, 662, 664, 666], ["SHARI", 668, 670, 672, 674, 676, 678, 680, 682, 684, 686], ["SHAWNA", 688, 690, 692, 694, 696, 698, 700, 702, 704, 706], ["STEPHI", 708, 710, 712, 714, 716, 718, 720, 722, 724, 726, 728, 730, 732, 734, 736, 738, 740, 742, 744, 746]]
- set gPhotos4 to [["ALLIE", 202, 204, 206, 208, 210, 212, 214, 216, 218], ["CANDI", 220, 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258], ["CHERYL", 260, 262, 264, 266, 268, 270, 272, 274, 276, 278], ["CONNIE", 280, 282, 284, 286, 288, 290, 292, 294, 296, 298], ["DANA", 300, 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, 322, 324, 326, 328, 330, 332, 334, 336], ["ELLEN", 338, 340, 342, 344, 346, 348, 350, 352, 354, 356], ["ERICA", 358, 360, 362, 364, 366, 368, 370, 372, 374, 376, 378, 380, 382, 384, 386, 388, 390, 392, 394, 396], ["JASMIN", 398, 400, 402, 404, 406, 408, 410, 412, 414, 416, 418, 420, 422, 424, 426, 428, 430, 432, 434, 436], ["JULIE", 438, 440, 442, 444, 446, 448, 450, 452, 454, 456, 458, 460, 462, 464, 466, 468, 470, 472, 474, 476], ["LIZA", 478, 480, 482, 484, 486, 488, 490, 492, 494, 496], ["LORI", 498, 500, 502, 504, 506, 508, 510, 512, 514, 516, 518, 520, 522, 524, 526, 528, 530, 532, 534], ["LYNN", 536, 538, 540, 542, 544, 546, 548, 550, 552, 554], ["PAMELA", 556, 558, 560, 562, 564, 566, 568, 570, 572, 574, 576, 578, 580, 582, 584, 586, 588, 590, 592], ["ROBYN", 594, 596, 598, 600, 602, 604, 606, 608, 610, 612, 614, 616, 618, 620, 622], ["ROXIE", 624, 626, 628, 630, 632, 634, 636, 638, 640, 642, 644, 646, 648, 650, 652, 654, 656, 658, 660, 662], ["MISC", 664, 666]]
- end
-